import 'package:json_annotation/json_annotation.dart';

part 'shopCategoryModel.g.dart';

@JsonSerializable()
class ShopCategoryModel {
  ShopCategoryModel();

  @JsonKey(name: '_id') String? id;
  // 分类名
  String? title;
  // 状态
  num? status;
  String? pic;
  // 父类Id
  String? pid;
  // 排序
  num? sort;
  // 推荐
  num? is_best;
  // 是否跳转到商品 默认跳转到分类
  num? go_product;
  // 商品Id
  String? product_id;
  
  factory ShopCategoryModel.fromJson(Map<String,dynamic> json) => _$ShopCategoryModelFromJson(json);
  Map<String, dynamic> toJson() => _$ShopCategoryModelToJson(this);
}
